package com.d3works.csv.script;

import com.d3works.apps.base.db.Sequence;
import com.d3works.apps.base.service.administration.SequenceService;
import com.d3works.inject.Beans;
import java.util.Map;

public class SequenceScript {
  public Object computeFullname(Object bean, Map<String, Object> values) {
    assert bean instanceof Sequence;
    Sequence sequence = ((Sequence) bean);

    sequence.setFullName(Beans.get(SequenceService.class).computeFullName(sequence));

    return sequence;
  }
}
